#include <stdio.h>
#include <stdlib.h>
#include "SeqQueue.h"


	int main()
{
	Datatype data;
	queue_head *ptr = NULL;
	ptr = Init_Queue();
	while(1)
	{
		int num;
		scanf("%d",&num);
		if(-1 == num)
		{
			break;
		}
		EnQueue(ptr,num);
	}
	printf("%d\n",ptr->number);
	DeQueue(ptr,&data);
	printf("%d\n",data);
	DeQueue(ptr,&data);
	printf("%d\n",data);
	Destroy_Queue(&ptr);
	exit(0);
}
